# Contributor: Jason Swank <jswank@scalene.net>
# Maintainer: Jason Swank <jswank@scalene.net>
pkgname=openvi
pkgver=7.6.30
pkgrel=1
pkgdesc="OpenVi is a fork of the vi / ex editor included with OpenBSD"
url="https://github.com/johnsonjh/OpenVi"
arch="all"
license="BSD-3-Clause"
makedepends="ncurses-dev"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/johnsonjh/OpenVi/archive/refs/tags/$pkgver.tar.gz"
builddir="$srcdir/OpenVi-$pkgver"
options="!check" # no tests

build() {
	make
}

package() {
	make BINPREFIX="o" IUSGR=root:root DESTDIR="$pkgdir" PREFIX="/usr" install
}

sha512sums="
2a8e6382cc846073d32df8f63a225b30ca984e9a563007f3afc3183d87583b2b40821a3d1234d60c4a432a7c0696646a336746dac768eab215d54e7cab91aad5  openvi-7.6.30.tar.gz
"
